package com.shsxt.dao;


import java.util.List;
import java.util.Map;


import com.shsxt.model.Address;
import com.shsxt.model.CheckNumber;
import com.shsxt.model.Coupon;
import com.shsxt.model.CreditsDetail;
import com.shsxt.model.Invite;
import com.shsxt.model.Location;
import com.shsxt.model.SignIn;
import com.shsxt.model.UserInfo;

public interface WodeDao {
	//点击我的
	//点击头像  ：个人中心
	public UserInfo findUserByPhone(String phoneNumber);
	public UserInfo findUserByOpenid(String openid);

	//点击头像  ：个人中心:保存(除了头像之外的信息)
	public Integer updateMessages(Map<String, Object> param);
	//返回储存头像地址的文件夹,并将完路径的头像地址存到数据库
	public Integer updateHeadStr(Map<String, Object> param);
	//点击普通用户： 用户经验和等级(经验值等级差多少升级)
	public void updateMemberLevel(int vip);
	
	//点击签到有奖： 签到奖励积分(签到成功字符串)
	public SignIn findSignByPhone(String phoneNumber);
	public void createSign(String phoneNumber);
	public void updateSignCount(Map<String, Object> param);
	public void updateCredits(Map<String, Object> param);
	public void updateSignTime(Map<String, Object> param);
		
	//邀请有礼(url)
	public Invite findInviteByPhone(String phoneNumber);
	public void createInviteByPhone(String phoneNumber);
	public void updateInvite(Map<String, Object> param);

	// //我的：地址(此用户所有地址：地址默认手机号)
	public List<Address> findAddressByPhone(String phoneNumber);
	//我的：地址：添加新地址？手机地址默认
	public int addAddress(Map<String, Object> param);
	//我的：地址：编辑地址:保存?手机地址默认
	public Integer updateAddress(Map<String, Object> param);
	//使默认唯一
	public Integer updateTagAddress(Map<String, Object> param);
	//设置：用户反馈?手机号反馈
	public Integer addFeedBack(Map<String, Object> param);
	//地址：默认
	public int defaultAddress(String uuid);
	public int defaultAddressrev(Map<String, Object> param);
	//同过uuid删除唯一地址
	public int deleteAddress(String uuid);
	//通过uuid查找唯一的地址
	public Address findAddressByUuid(String uuid);
	//查询用户的积分明细
	public List<CreditsDetail> findCreditsDetailByPhone(String phoneNumber);
	//获取这个用户所有的优惠券
	public List<Coupon> findCouponByPhone(String phoneNumber);
	//签到进入积分明细
	public void createCreditsDetail(Map<String, Object> creditsDetail);
	
	public void updateHead(String userId, String imgUrl);
	//查找验证码
	public CheckNumber findCheck(Map<String, Object> param);
	//生成验证码 并发送
	public void insertDuanxin(Map<String, Object> param);
	//生成同时删除昨天的验证码
	public void deleteDuanxin();
	public void updateTimeByPhone(String phoneNumber);
	public void updateTimeByOpenid(String openid);
	public List<UserInfo> findUsers();
	public void createUser(Map<String, Object> param);
	//把第一条地址设为默认
	public void updateTagOne(String phoneNumber);
	//邀请是 添加积分表里的积分获取记录
	public void insertCreditsDetail(Map<String, Object> param);
	public void updateMemberBalance(Map<String, Object> param);
	public List<Location> findLocation();
	public void sendCoupon(Map<String, Object> param);
	public void resetToken(Map<String, Object> param);
	public void updateCreditsHouTai(Map<String, Object> param);

	

	

	

	


	
	
	 




	

	

	

	

}
